﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_CM_GetClientIDByName]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_CM_GetClientIDByName];
GO
CREATE PROCEDURE [dbo].[sproc_CM_GetClientIDByName]
@name nvarchar(100)
AS
    exec('SELECT ID FROM UDS_CM_ClientInfo WHERE NAME like ''%'+ @name + '%''')